Search results
32 packages found
A cross-platform path to the user's home
Convert a tilde path to an absolute path: `~/dev` → `/Users/john/dev`
Convert a tilde path to an absolute path: `~/dev` → `/Users/sindresorhus/dev`
Convert an absolute path to a tilde path: `/Users/YourUserName/dev` → `~/dev`
- tilde
- expansion
- expand
- commonjs
- tildify
- unexpand
- homedir
- collapse
- convert
- path
- home
- directory
- user
- shell
- View more
Platform agnostic user home directory path resolution for Node.js.
Bash-like tilde expansion for node.js. Expands a leading tilde in a file path to the user home directory, or `~+` to the cwd.
Get the user home directory with fallback to the system temp directory
Resolve a directory that is either local, global or in the user's home directory.
a cross-platform path to the user's home utility from the m.icro series
Convert an absolute path to a tilde path: `/Users/sindresorhus/dev` → `~/dev`
Return the current user's home directory.
Get a list of all unix shells for which user configuration files exist. Supports bash, zsh, and fish.
Get a path in the user home directory
Return the current user's home directory.
Get user info of an npm user
Get cross-platform XDG Base Directories or their equivalents. Works with Linux, Windows (win32), or MacOS (darwin).
Manage configs in the user home dir
Get user info of an npm user
Get the passwd user entry from a username or user identifier (UID)